<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>辅助插件 > <a href="../friendlink/">友情链接管理</a> > 类型设置</div>
	<div class="rightbody m">
		<div class="rightbodycontent">
			<table class="tools">
		        <tr>
		            <td align="right">
		                <a href="edit" class="linkbtn insert">新建类型</a>
		            </td>
		        </tr>
		    </table>
		    <table cellspacing="1" cellpadding="4" class="tablelist">
		        <tr>
		            <th width="40%">类型名称</th>
	                <th>对应友情链接数</th>
	                <th>操作</th>
		        </tr>
		        <#list friendlinktypes as friendlinktype>
		        	<tr<#if friendlinktype_index % 2 == 1> class="splittr"</#if>>
		        		<td align="center">${friendlinktype.name}</td>
		                <td align="center">${friendlinktype.friendlinks?size}</td>
		                <td align="center">
		                    <a href="edit?friendlinktypeid=${friendlinktype.id}" class="linkbtn update noborder">修改</a>
		                    <a href="delete?friendlinktypeid=${friendlinktype.id}" class="linkbtn delete noborder" onclick="return confirm('<#if friendlinktype.friendlinks?size gt 0>删除该类型会将其对应友情链接删除，请谨慎操作，</#if>确定删除吗？')">删除</a>
		                </td>
		        	</tr>
		        </#list>
		    </table>
	    </div>
    </div>
    <div class="rightfoot">
		<div class="rightfootcontent">
			<input type="button" value="返 回" class="return" onclick="location.replace('../friendlink/')" />
		</div>
    </div>
</body>
</html>